package cn.stard.org.service.impl;

import cn.stard.basic.util.PageList;
import cn.stard.org.domain.SystemDetail;
import cn.stard.org.domain.SystemDetail;
import cn.stard.org.mapper.SystemDetailMapper;
import cn.stard.org.query.SystemDetailQuery;
import cn.stard.org.query.SystemDetailQuery;
import cn.stard.org.service.ISystemDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SystemDetailServiceImpl implements ISystemDetailService {
    @Autowired
    private SystemDetailMapper systemDmapper;
    @Override
    public List<SystemDetail> loadAll1(Long id) {
        return systemDmapper.loadAll1(id);
    }

    @Override
    public List<SystemDetail> loadAll() {
        return systemDmapper.loadAll();
    }

    @Override
    public SystemDetail loadById(Long id) {
        return null;
    }

    @Override
    public void remove(Long id) {
        systemDmapper.remove(id);
    }

    @Override
    public void save(SystemDetail systemType1) {
        systemDmapper.save(systemType1);

    }

    @Override
    public void update(SystemDetail systemType1) {
        systemDmapper.update(systemType1);

    }

    @Override
    public PageList queryData(SystemDetailQuery systemType1Query) {


        /*高级查询数据*/
        List<SystemDetail> rows = systemDmapper.queryData(systemType1Query);
        /*查询分页总数*/
        Integer total = systemDmapper.queryCount(systemType1Query);

        return  new PageList<SystemDetail>(total,rows);


    }

    @Override
    public Integer queryCount(SystemDetailQuery SystemType1Query) {
        return null;
    }


    @Override
    public void deles(List<Long> ids) {
        systemDmapper.deles(ids);

    }
}